package com.example.service;

import com.example.entity.User;
import org.apache.dubbo.config.annotation.Service;

import java.util.ArrayList;
import java.util.List;

@Service(token = "123qwe")
public class UserServiceImpl implements UserService {

    @Override
    public List<User> getUserList() {
        List<User> list = new ArrayList<>();
        User user1 = new User();
        user1.setId(1l);
        user1.setAge(23);
        user1.setName("张三疯");

        User user2 = new User();
        user2.setId(2l);
        user2.setAge(25);
        user2.setName("侏马儒");

        list.add(user1);
        list.add(user2);

        return list;
    }
}
